//
//  AppDelegate.m
//  XQZone
//
//  Created by 张雪雪 on 16/4/8.
//  Copyright © 2016年 张雪雪. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    if (ISPHONE) {
        //2.获取Strongboard
        UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
        //3.获取控制器
        UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"main_iPhone"];
        //4. 切换根控制器
        self.window.rootViewController = vc;
    }
    return YES;
}
#pragma mark -  设置屏幕的支持方向
//针对个别控制器
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
//UISplitViewControllet比较特殊，默认支持四个方向
    if (ISPHONE) {
        return  UIInterfaceOrientationMaskPortrait;
    }else{
    
        return UIInterfaceOrientationMaskAll;
    }



}
@end
